//
//  BaseNavgationController.m
//  demo01
//
//  Created by 小胖子 on 2020/7/16.
//  Copyright © 2020 小胖子. All rights reserved.
//

#import "BaseNavgationController.h"

@interface BaseNavgationController ()

@end

@implementation BaseNavgationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
- (void) pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (animated) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:YES];
    [self setNavigationBarHidden:NO animated:YES];
}

@end
